<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.basepom</groupId>
    <artifactId>basepom-oss</artifactId>
    <version>30</version>
  </parent>  
  <groupId>io.integration</groupId>
  <artifactId>{{vdbName}}</artifactId>
  <version>1.0.0</version>
  <packaging>jar</packaging>
  
  <dependencies>
    <dependency>
      <groupId>org.teiid</groupId>
      <artifactId>teiid-spring-boot-starter</artifactId>
      <version>${teiid.springboot.version}</version>
    </dependency>
    <dependency>
      <groupId>me.snowdrop</groupId>
      <artifactId>narayana-spring-boot-starter</artifactId>
      <version>2.1.0</version>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-actuator</artifactId>
      <version>${springboot.version}</version>
    </dependency>
    <dependency>
      <groupId>io.opentracing.contrib</groupId>
      <artifactId>opentracing-spring-jaeger-web-starter</artifactId>
      <version>1.0.1</version>
    </dependency>
    <dependency>
      <groupId>org.teiid</groupId>
      <artifactId>spring-odata</artifactId>
      <version>${teiid.springboot.version}</version>
    </dependency>
{{{vdbDependencies}}}
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>${springboot.version}</version>
        <executions>
          <execution>
            <id>repackage</id>
            <phase>package</phase>
            <goals>
              <goal>repackage</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.teiid</groupId>
        <artifactId>vdb-codegen-plugin</artifactId>
        <version>${teiid.springboot.version}</version>
        <configuration>
            <vdbFile>src/main/resources/teiid.ddl</vdbFile>
            <vdbVersion>1</vdbVersion>
            <materializationType>infinispan-hotrod</materializationType>
        </configuration>        
        <executions>
            <execution>
                <id>codegen</id>
                <phase>generate-sources</phase>
                <goals>
                    <goal>vdb-codegen</goal>
                </goals>
            </execution>
        </executions>
      </plugin>      
    </plugins>
  </build>
</project>